package ch.usi.da;

/**
 * Created by IntelliJ IDEA.
 * User: Sergey Karakovskiy, sergey at idsia dot ch
 * Date: Nov 9, 2009
 * Time: 11:42:56 AM
 */
public class ConfigReader
{
    private ProcessRole role;

    /*
    Meghdad TODO: put the description of the file format here with the example
    Also, put the description of the method here, how you understand it.
    
    Paxos method is made up of 2 main phases and each phase is made of 2 phases.
    Phase 1.a: proposer send proposal (ballot number) to acceptors
    Phase 1.b: acceptors sends a promise to accept the ballot number and the highest value they already accepted
    	   	   or they send nothing back.
    Phase 2.a: proposer sends the acceptance message,with promised ballot number and the highest value among responses
    		   it received in the previous phase.
    Phase 2.b: acceptors can either send an acknowledge message to proposer(accepting it's proposal)  or in the case that 
      		   they don't accept the proposal they send nothing
      		   
      		  Example :
      		  
      		   
      		 
     */
    public void readConfigurationFile(String fileName)
    {

    }

    public ProcessRole getProcessRole()
    {
        return role;
    }
}
